<script setup lang="ts">
import { RouterView } from 'vue-router'
import zhCN from 'ant-design-vue/es/locale/zh_CN'
import { ConfigProvider } from 'ant-design-vue'
import dayjs from 'dayjs'
import 'dayjs/locale/zh-cn'

dayjs.locale('zh-cn')
</script>

<template>
  <ConfigProvider :locale="zhCN">
    <RouterView v-slot="{ Component }">
      <template v-if="Component">
        <suspense>
          <component :is="Component" />
          <template #fallback>
            <div style="text-align: center; padding-top: 60px">
              资源加载中，请稍后...
            </div>
          </template>
        </suspense>
      </template>
    </RouterView>
  </ConfigProvider>
</template>

<style>
::-webkit-scrollbar {
  width: 0;
  height: 0;
  color: transparent;
}
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* text-align: center; */
  /* color: #2c3e50; */
}
</style>
